/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_manager.htm
 *
 * Zhiqim Manager is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.manager.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 角色表 对应表《ZMR_ROLE》
 */
@AnAlias("ZmrRole")
@AnNew
@AnTable(table="ZMR_ROLE", key="ROLE_ID", type="InnoDB")
public class ZmrRole implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="ROLE_ID", type="long", notNull=true)    private long roleId;    //1.角色编号
    @AnTableField(column="ROLE_NAME", type="string,32", notNull=true)    private String roleName;    //2.角色名称
    @AnTableField(column="ROLE_STATUS", type="byte", notNull=true)    private int roleStatus;    //3.角色状态，0表示正常，1表示停用
    @AnTableField(column="ROLE_SEQ", type="int", notNull=true)    private int roleSeq;    //4.角色排序数

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getRoleId()
    {
        return roleId;
    }

    public void setRoleId(long roleId)
    {
        this.roleId = roleId;
    }

    public String getRoleName()
    {
        return roleName;
    }

    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public int getRoleStatus()
    {
        return roleStatus;
    }

    public void setRoleStatus(int roleStatus)
    {
        this.roleStatus = roleStatus;
    }

    public int getRoleSeq()
    {
        return roleSeq;
    }

    public void setRoleSeq(int roleSeq)
    {
        this.roleSeq = roleSeq;
    }

}
